home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-01
/
pdcurs21.zip
/
PORTABLE.ZIP
/
WCLEAR.C
< prev
next >
Wrap
Text File
|
1992-11-21
|
1KB
|
50 lines
#define CURSES_LIBRARY 1
#include <curses.h>
#undef wclear
#ifndef NDEBUG
char *rcsid_wclear = "$Header: c:/curses/portable/RCS/wclear.c%v 2.0 1992/11/15 03:29:23 MH Rel $";
#endif
/*man-start*********************************************************************
wclear() - Clear window
X/Open Description: clear() and wclear()
These functions are like erase(), but they also call clearok(),
arranging that the screen will be cleared completely on the
next call to wrefresh() for that window and repainted.
NOTE: clear() is a macro.
PDCurses Description:
There is no additional PDCurses functionality. This module is
a documentation place holder. No code will execute in this module
unless the user #undefs wclear.
X/Open Return Value:
The wclear() function returns OK on success and ERR on error.
PDCurses Errors:
It is an error to call this function with a NULL window pointer.
Portability:
PDCurses int wclear( WINDOW* win );
X/Open Dec '88 int wclear( WINDOW* win );
BSD Curses int wclear( WINDOW* win );
SYS V Curses int wclear( WINDOW* win );
**man-end**********************************************************************/
int wclear( WINDOW *win )
{
if (win == (WINDOW *)NULL)
return( ERR );
clearok( win, TRUE );
return( werase( win ) );
}